package lesson14;
import lesson15.Person;
public class Car {
	//private String model;
	//private int maxSpeed;
	//private int currentSpeed;
	//private String color;
	//private int currentGear;
	//Person owner;
	//public int tank; 
	//private boolean isAvaible;
	public Person owner = new Person();
	
	/*Car(String model, int maxSpeed, int currentSpeed, String color, int currentGear, int tank)
	{
		this.model = model;
		this.maxSpeed = maxSpeed;
		this.currentSpeed = currentSpeed;
		this.color = color;
		this.currentGear = currentGear;
		this.tank = tank;
	}*/
	private double price;
	private boolean isSportCar;
	private String colorParam; 
	String modelParam;
	double maxSpeed;
	
	public Car()
	{
		
	}
	
	
	public Car(String modelParam, boolean isSportCarParam, String colorParam)
	{
		this.modelParam = modelParam;
		this.isSportCar = isSportCarParam;
		this.colorParam = colorParam;
	}
	
	Car(String model, boolean isSportCar, String color, double price, double maxSpeed)
	{
		this(model, isSportCar, color);
		this.price = price;
		if(maxSpeed > 200 && this.isSportCar)
			this.maxSpeed = maxSpeed;
		
	}
	
	boolean isMoreExpensive(Car car)		{	return (this.price > car.price);	}
	
	public void printInformation()
	{
		System.out.println("--------CAR INFO--------");
		System.out.println("Owner " + this.owner.getName());
		System.out.println("Model: " + this.modelParam);
		System.out.println("Color" + this.colorParam);
		System.out.println("is sport: " + this.isSportCar);
		
	}
	/*boolean isOutOfGas(int gasoline)
	{
		if(gasoline < 10)
		{
			return true;
		}
		return false;
	}*/

/*	void accelerate()
	{
		this.currentSpeed+=10;
	}
	
	void changeGearUp()
	{
		this.currentGear++;
	}
	
	void changeGearDown()
	{
		this.currentGear--;
	}
	
	void changeGear(int gear)
	{
		this.currentGear = gear;
	}
	
	void changeColor(String newColor)
	{
		this.color = newColor;
	}
	
	public int getCurrentGear() {
		return currentGear;
	}
	/*public void setCurrentGear(int currentGear) {
		this.currentGear = currentGear;
	}
	public String getModel() {
		return model;
	}
	public void setModel(String model) {
		this.model = model;
	}
	public int getMaxSpeed() {
		return maxSpeed;
	}
	public void setMaxSpeed(int maxSpeed) {
		this.maxSpeed = maxSpeed;
	}
	public int getCurrentSpeed() {
		return currentSpeed;
	}
	public void setCurrentSpeed(int currentSpeed) {
		this.currentSpeed = currentSpeed;
	}
	public String getColor() {
		return color;
	}
	public void setColor(String color) {
		this.color = color;
	}*/

	
	//String model;
	//String maxSpeed; 
	//boolean isAvaible;
	//Person owner;
	
	
}
